libmyc.a:mymath.o mystring.o
	ar -rc $@ $^
mymath.o:mymath.c
	gcc -c $<
mtstring.o:mystring.c
	gcc -c $<

.PHONY:output
output:
	mkdir -p ./lib/include
	mkdir -p ./lib/mylib
	cp *.h ./lib/include
	cp *.a ./lib/mylib
	tar czf lib.tgz lib
.PHONY:clean
clean:
	rm -rf *.o libmyc.a lib lib.tgz
